package com.hgzy.meeting.mapper;

import com.hgzy.meeting.model.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    Employee doLogin(@Param("username") String username, @Param("password") String password);

    int doReg(Employee employee);

    Employee findByName(String name);

    List<Employee> getAllEmployees(Integer status);

    int updateStatus(@Param("employeeId") Integer employeeId, @Param("status") Integer status);

    List<Employee> findEmployees();

    long getTotal(Employee employee);

    List<Employee> getAllEmps(@Param("emp") Employee employee,@Param("page") Integer page,@Param("pagesize") Integer pageSize);
}
